﻿using System;
using System.IO;
using System.Text;
using ProjScan.Tools;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002A1 RID: 673
	internal class ParticleEffectAssetData : AssetDataBase
	{
		// Token: 0x0600118D RID: 4493 RVA: 0x000086CA File Offset: 0x000068CA
		public ParticleEffectAssetData(string name, int dirId, string fileLocation, float renderTime)
		{
			this.dirId = dirId;
			this.fileLocation = fileLocation;
			this.isInitialized = false;
			this.name = Path.GetFileName(this.fileLocation);
			this.renderTime = renderTime;
		}

		// Token: 0x0600118E RID: 4494 RVA: 0x00052B48 File Offset: 0x00050D48
		public override string GetCSVHeader()
		{
			return "Name,DirID,TexMemoryKB,TexNumber,PSCompNumber,DrawcallPeak,OverdrawRate,ParticleNumber";
		}

		// Token: 0x0600118F RID: 4495 RVA: 0x00052B60 File Offset: 0x00050D60
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(ToolsHelper.QuoteString(this.name));
			stringBuilder.Append(',');
			stringBuilder.Append(this.dirId);
			stringBuilder.Append(',');
			stringBuilder.Append(this.texMemory);
			stringBuilder.Append(',');
			stringBuilder.Append(this.texNumber);
			stringBuilder.Append(',');
			stringBuilder.Append(this.psCompNumber);
			stringBuilder.Append(',');
			stringBuilder.Append(this.drawcallPeak);
			stringBuilder.Append(',');
			stringBuilder.Append(this.overdrawRate.ToString("F2"));
			stringBuilder.Append(',');
			stringBuilder.Append(this.particleNumber);
			return stringBuilder.ToString();
		}

		// Token: 0x06001190 RID: 4496 RVA: 0x00002A20 File Offset: 0x00000C20
		public override void Reset()
		{
		}

		// Token: 0x06001191 RID: 4497 RVA: 0x00052C34 File Offset: 0x00050E34
		public override string GetAssetPath()
		{
			return this.fileLocation;
		}

		// Token: 0x06001192 RID: 4498 RVA: 0x00052C34 File Offset: 0x00050E34
		public override string GetFileAssetPath()
		{
			return this.fileLocation;
		}

		// Token: 0x04000A48 RID: 2632
		public string name;

		// Token: 0x04000A49 RID: 2633
		public bool isInitialized;

		// Token: 0x04000A4A RID: 2634
		public int dirId;

		// Token: 0x04000A4B RID: 2635
		public string fileLocation;

		// Token: 0x04000A4C RID: 2636
		public float renderTime;

		// Token: 0x04000A4D RID: 2637
		public int texNumber;

		// Token: 0x04000A4E RID: 2638
		public int texMemory;

		// Token: 0x04000A4F RID: 2639
		public int psCompNumber;

		// Token: 0x04000A50 RID: 2640
		public int particleNumber;

		// Token: 0x04000A51 RID: 2641
		public int drawcallPeak;

		// Token: 0x04000A52 RID: 2642
		public float overdrawRate;
	}
}
